Declaration in programming Explained


Declaration means
-> creating a variable with its own data type

Declaration
-> specifies a type,
-> contains a list of 1 or more variables of that type, as in

Code below is example of what declaration means

int lower, upper, step; 
// ^ Declared int to variable lower, upper and step

char c, line[1000];
// ^ Declared char to c and an array line

int love = 1;
// ^ Declared int to love with a value attached to it

Attaching a value to a declared variable is called Initialization

References